package com.twobu.twobuinsight.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 通用分页请求参数基类
 */
@Data
@Schema(description = "通用分页请求参数")
public class PageRequest {

    @Schema(description = "当前页码", defaultValue = "1")
    private Integer current = 1;

    @Schema(description = "每页记录数", defaultValue = "10")
    private Integer size = 10;

    @Schema(description = "排序字段")
    private String orderField;

    @Schema(description = "排序方式(asc/desc)", defaultValue = "desc")
    private String orderType = "desc";
}
